package com.hefei.genericity;

/**
 * @author caizhengjun
 * @date 2020/9/4 5:03 下午
 */
public class Demo07 {

    public static void main(String[] args) {
        printMsg("111", 222, "aaaaaaa", "2324.4", 55.55);
    }

    //泛型方法与可变参数
    public static <T> void printMsg(T... args) {
        for (T arg : args) {
            System.out.println("arg = " + arg);
        }
    }
}
